package com.ndp.fb.rdb.db.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ndp.fb.rdb.api.EcColorTypeRdbService;
import com.ndp.fb.rdb.db.DaoTemplate;
import com.ndp.fb.rdb.db.impl.mapper.DefaultRowMapper;
import com.ndp.fb.rdb.model.ectemplate.EcColorType;

import java.util.List;

/**
 * Created by evan on 2016/7/2.
 */
@Service
public class EcColorTypeRdbServiceImpl extends DaoTemplate implements EcColorTypeRdbService {

    @Override
    public List<EcColorType> findAll() {
        return findAll(DefaultRowMapper.autoRowMapper(EcColorType.class));
    }
}
